package com.brtbeacon.demo.lot.speech;

import android.content.Context;

public class SpeechEngine {

    public boolean init() {
        return true;
    }

    public void speak(String content) {

    }

    public void pause() {

    }

    public void resume() {

    }

    public void stop() {

    }

    public void close() {

    }

    public String getName() {
        return "";
    }

    public static SpeechEngine create(Context context) {
        SpeechEngine engine = null;
        //engine = new SpeechEngineBaiduTTS(context);
        engine = new SpeechEngineLegacy(context);
        if (!engine.init()) {
            engine.close();
            engine = null;
        }

        if (engine == null) {
            engine = new SpeechEngineNone();
        }

        return engine;
    }
}
